home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
maple
/
fixes
< prev
next >
Wrap
Text File
|
1994-06-21
|
6KB
|
168 lines
The lib subdirectory under the share directory for each version of Maple
contains fixes and other updates to the Maple library, for example
simple bug fixes, efficiency improvements, and corrections to help files.
Note, we do not provide fixes for every bug in Maple in this way because
some fixes require changes to the Maple kernel, and others require
global changes to many files.
This message contains three parts
A: Installing Fixes/Updates
B: Testing (how to test if the fixes/updates are installed correctly)
C: Where is the Maple library?
If all this fails, call me, FAX me, or e-mail me at
TEL: +41 1 632-7473 (Till
FAX: +41 1 262-3963
E-MAIL: monagan@inf.ethz.ch
Michael Monagan
Installing Fixes/Updates
========================
Fixes/updates are placed under the lib directory in the share library.
For each fix/update, you will find two files, a so called Maple ".m" file,
and the Maple src file.
To install the fixes/updates, you have several possibilities, depending
on which version of Maple you have and which kind of computer you have.
From easiest to hardest, they are
1: (for Maple V Release 2 only)
In the directory 5.2/lib in the share library, you will find two files
maple.ind and maple.lib. The file maple.lib is a Maple library archive
of all the fixes, and the file maple.ind is an index into the file
maple.lib for fast access.
Make a new directory <fixlib> on your system, copy these files into
this directory, start Maple, and specify
libname := <fixlib>, libname;
This causes Maple to search the <fixlib> directory before it searches
the Maple library.
For single users, you can put this command in your .mapleinit file so
that it is executed automatically everytime you start Maple.
For Unix system administrators who want to install fixes for all users,
you should update the maple script in the maple bin directory as follows.
Immediately after the text
# Start the Motif version of Maple if -x was specified. Otherwise start
# the TTY version (which might in turn start the Motif interface). Iris
# parameters are not allowed if the TTY version is started.
before Maple is started, insert the following commands
FIXLIB=...the directory where you put the fixes...
KPARAM="$KPARAM -b $FIXLIB,$MAPLE/lib"
2: (for Unix systems only)
The file lib.tar.Z is a compressed Unix tar file of all the ".m" files
under the directory lib. After copying this file you can unpack it by
executing the commands
uncompress lib.tar
tar xf lib.tar
This will create a subdirectory called "lib" under the current directory
if none already exists. If such a directory already exists, files
underneath it will be overwritten.
a) The easiest way to install the fixes if you have write access to your
copy of the Maple library, is to overwrite the Maple library directory.
Just cd to the directory which contains the Maple library and execute
the above commands.
b) If you do not have write access to the Maple library, install the fixes
under your home directory. If you have Maple V Release 2, you can now
access the fixes as in option (1). If you have Release 1, you need to
use the "uselib" command from the Maple share library.
3: Copy the Maple .m file(s) to the corresponding place in your Maple library.
For example, if the file is int/discont.m, you need to put the file
discont.m in the int subdirectory in the Maple library. If the
subdirectory does not exist, you need to create it.
If you do not have write permissions, make your own image of the Maple
library in the directory <fixdir> and put the .m file in the corresponding
place in this directory. Now, go to step 2 b.
4: Copy the Maple src file(s) and load it, i.e. execute the command
maple -s < file
(The syntax of the command is slightly different on non-Unix systems)
Maple will read in the src code and try to save it in your copy of the
Maple library. The actual place where it is saved is given in the save
statement in the src code. For example
save polar, ``.libname.`/polar.m`;
saves the polar routine into the file polar.m in the Maple library.
If you do not have write permissions on your copy of the Maple library,
Maple will reply with the following error
Error, could not open polar.m for writing
In this case, change the save statement to save the file into the
current directory by doing
save polar, `polar.m`;
Now go to step 3.
Testing
=======
To check that you installed the fixes/updates correctly:
For Maple V Release 1 execute the following test
> factor(14406+343*N2**2+N2**4);
Error, (in factor/try1) modp1: invalid arguments to function Multiply
If the fix is installed correctly, you should get instead of the error
the factorization
2 2
(N2 + 49) (N2 + 294)
For Maple V Release 2 execute the following test
> expand(Psi(1,x+2));
1
Psi(1, x) - -----------
2 2
x (x + 1)
If the fix is installed correctly, you should get instead
1 1
Psi(1, x) - ---- - --------
2 2
x (x + 1)
Where is the Maple library?
===========================
You can find out where the Maple library is kept by going into Maple and typing
> libname;
The libname variable is a global variable whose value is a string which
specifies the directory where the Maple library is.
On a Unix system, you will get something like this
/home/rutishauser/oed4/maple/lib
On a PC, you will get something like this
C:/maple/lib